score_1i = []
total_score = 0
for i in range(1, 11):
    score = float(input(f"请第{i}位评委输入评分：\n"))
    score_1i.append(score)
score_1i.sort()
print(f"去掉最低分：{score_1i[0]}")
print(f"去掉最高分：{score_1i[len(score_1i)-1]}")
score_1i.remove(score_1i[0])
score_1i.pop()
for j in score_1i:
    total_score += j
    print(f'选手最终得分为:{ total_score / (len(score_1i))}')
